/*
 * @Author: Ancient-Ares 
 * @Date: 2021-06-09 21:25:46 
 * @Last Modified by: Ancient-Ares
 * @Last Modified time: 2021-06-24 11:27:08
 */


@import './variables.scss';

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  &:not(a):hover {
    user-select: none;
  }
}

html {
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, 'SimSun', sans-serif;
  word-spacing: 1px;
  box-sizing: border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  min-width: $base-width;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
a,
span,
i,
label {
  margin: 0;
  padding: 0;
  font-weight: normal;
  color: $text-color;
}

strong {
  span, p, h1, h2, h3, h4, h5, h6, ul, li, a, i, label {
    font-weight: 600;
  }
}

fieldset,
img,
input,
button,
textarea {
  border: none;
  padding: 0;
  margin: 0;
  outline-style: none;
}

.textOverflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul li {
  list-style: none;
}

a {
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  -webkit-tap-highlight-color: rgba(153, 153, 153, 0.1);

  &:hover {
    color: $base-color;
  }
}

img {
  user-select: none;
}

.hidden {
  display: none;
}

.clearfix {
  zoom: 1;

  &::after {
    content: ' ';
    display: block;
    height: 0;
    clear: both;
  }
}

.transform,
button {
  transition: all .3s linear;

  &:hover {
    transition: all .3s ease-out;
  }
}

button {
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;

  &:hover {
    box-shadow: 0 0 6px #f1f1f1;
  }

  &:disabled {
    background: #ccc !important;
    color: #fff !important;
    border-color: #ccc !important;
    cursor: not-allowed;
  }
}

label {
  .checkbox {
    display: inline-block;
    height: 22px;
    line-height: 21px;
    width: 22px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    text-align: center;

    i {
      vertical-align: text-bottom;
      color: $base-color;
      font-size: 18px;
      font-weight: 600;
    }
  }

  .text {
    font-size: 16px;
    color: #999;
    margin-left: 5px;
  }

  &:hover {
    .text {
      color: $base-color;
      cursor: pointer;
    }
  }
}

.detail-title {
  position: relative;
  margin-top: 30px;
  height: 50px;
  line-height: 50px;
  padding-left: 15px;
  font-size: 26px;
  color: #24292F;
  border-bottom: 1px solid #ebebeb;
  &.middle {
    width: 900px;
    margin: 15px auto 0 auto;
    border-bottom: 0;
  }
  &::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 0;
    height: 24px;
    width: 4px;
    background: $base-color;
  }

  .btn {
    font-size: 16px;
    float: right;
    color: $base-color;

    &:hover {
      cursor: pointer;
      color: $base-color-hover;
    }
  }
}

.detail-tip {
  position: relative;
  margin: 10px 0;
  height: 40px;
  line-height: 40px;
  padding-left: 30px;
  font-size: 18px;
  color: #24292F;
  background: #F6F7F8;

  &::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 16px;
    height: 18px;
    width: 4px;
    background: $base-color;
  }

  span {
    margin-right: 20px;
    float: right;
    color: $base-color;
    font-size: 16px;

    &:hover {
      cursor: pointer;
      color: $base-color-hover;
    }
  }
}

.submit {
  margin: 60px 0;
  text-align: center;

  button {
    height: 45px;
    width: 150px;
    margin: 0 20px;
    border: 1px solid $base-color;
    border-radius: 6px;
    font-size: 16px;

    &:hover {
      box-shadow: 0 0 6px 0 $base-color;
    }
  }

  .cancel {
    background: #fff;
    color: $base-color;
  }

  .confirm {
    background: $base-color;
    color: #fff;
  }
}

// 谷歌：
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0;
}

// 火狐：
input[type="number"] {
  -moz-appearance: textfield;
}


.pointer,
.checkbox {
  cursor: pointer;
}

.hover-text {
  &:hover {
    color: $base-color;
    cursor: pointer;
  }
}


/* 2倍屏 */
@media only screen and (-webkit-min-device-pixel-ratio: 2.0) {
  .border-bottom::after {
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }
}

/* 3倍屏 */
@media only screen and (-webkit-min-device-pixel-ratio: 3.0) {
  .border-bottom::after {
    -webkit-transform: scaleY(0.33);
    transform: scaleY(0.33);
  }
}

/* SCROLL STYLE */
// ::-webkit-scrollbar-track {
//   background-color: transparent;
// }

// ::-webkit-scrollbar {
//   width: 0;
//   background-color: transparent;
// }

// ::-webkit-scrollbar-thumb {
//   background-color: transparent;
// }
